<?php echo $header; ?>
<?php if ($categories) { ?>
<div class="container">
  <div class="row">
    <div id="content" class="col-xs-12"><?php echo $content_top; ?>
      <div class="nav-bar breadcrumb"><?php echo $text_category; ?></div>
      <div class="category-manufacturer-switch">
        <a href="<?php echo $category; ?>" class="active"><?php echo $text_category; ?></a>
        <a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a>
      </div>
      <?php foreach ($categories as $category): ?>
      <div class="row widget category-section">
        <a href="<?php echo $category['href']; ?>" class="category-title <?php if (empty($category['children'])): ?>empty<?php endif ?>"><?php echo $category['name']; ?></a>
        <?php if ($category['children']): ?>
        <div class="col-sm-12">
          <div class="row">
            <?php if ($category['children']) { ?>
            <?php foreach ($category['children'] as $child) : ?>
            <div class="col-xs-3 item"><a href="<?php echo $child['href']; ?>"><img data-src="<?php echo $child['thumb'];?>" src="<?php echo $placeholder; ?>" class="lazy img-responsive"/><span><?php echo $child['name']; ?></span></a></div>
            <?php endforeach; ?>
            <?php } ?>
          </div>
        </div>
        <?php endif ?>
      </div>
      <?php endforeach;?>
      <?php echo $content_bottom; ?>
    </div>
  </div>
</div>
<?php } ?>
<?php echo $footer; ?>
</body></html>
